var app = angular.module('JiangGanApp')
app.controller('NaviCtrl', ['$scope','$state',NaviCtrl]);

function NaviCtrl($scope,$state,$anchorScroll,$location){

	$scope.naviList=[
		{
			name:'区域整治',
			icon:'',
			url:'app.region'
		},
		{
			name:'娱乐场所',
			icon:'',
			url:'app.region2'
		},
		{
			name:'嫖客',
			icon:'',
			url:'app.region3'
		}
	]

	$scope.ringList = [
		{
			type:'黄赌毒举报信息',
			time:'2017-8-12 18:23:32',
			info:'复兴路xxxx，聚众赌博。复兴路xxxx，聚众赌博。'
		},
		{
			type:'黄赌毒举报信息',
			time:'2017-8-12 18:23:32',
			info:'复兴路xxxx，聚众赌博'
		},
		{
			type:'黄赌毒举报信息',
			time:'2017-8-12 18:23:32',
			info:'复兴路xxxx，聚众赌博'
		},
		{
			type:'黄赌毒举报信息',
			time:'2017-8-12 18:23:32',
			info:'复兴路xxxx，聚众赌博'
		},
		{
			type:'黄赌毒举报信息',
			time:'2017-8-12 18:23:32',
			info:'复兴路xxxx，聚众赌博'
		},
		{
			type:'黄赌毒举报信息',
			time:'2017-8-12 18:23:32',
			info:'复兴路xxxx，聚众赌博'
		}


	]

	$scope.toggleRing = function(){
		if($scope.showRingList==true){
			$scope.showRingList = false;
		}else{
			$scope.showRingList = true;
		}
	}

	$scope.showRingList = false;

	$scope.goBack=function(){
		history.back()
	}
	
}
